package com.bytecodezz.app.learnopengl

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.TextView
import com.bytecodezz.app.learn1.NativeRender

class MainActivity : AppCompatActivity() {
    lateinit var testCppTv: TextView

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        testCppTv = findViewById(R.id.test_cpp_tv)
        testCppTv.text = NativeRender.stringFromJNI()
    }

    fun learn1Click(view: View) {
        startActivity(Intent(this, Learn1Activity::class.java))
    }

    fun learn2Click(view: View) {
        startActivity(Intent(this, Learn2Activity::class.java))
    }

    fun learn3Click(view: View) {
        startActivity(Intent(this, Learn3Activity::class.java))
    }
}